package com.um.jdy.app.shop.controller;

import com.um.jdy.app.base.manager.CourierManager;
import com.um.jdy.common.shop.entity.vo.CourierVO;
import com.um.springboot.starter.orm.entity.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 控制器：搜索热门关键词
 */
@RestController
@RequestMapping("/api/v1/shop/courier")
@Api(tags = "基础", description = "快递")
public class CourierController {

    @Autowired
    CourierManager courierManager;

    @ApiOperation("查询快递公司")
    @GetMapping()
    public Response<List<CourierVO>> getAll(){
        return Response.success(courierManager.getAll());
    }


}
